﻿using UnityEngine;
using System.Collections;

public class TimerScaler : ConsoleComponent
{
    private float _timeScale = 1f;

    public override void OnDrawing()
    {
        _timeScale = GUI.HorizontalSlider(GUIHelper.RatioRect(0.1522538f, 0.8427167f, 0.7863817f, 0.1159396f), 
            _timeScale, 0, 3.0f);

        Time.timeScale = _timeScale;
    }
}